package com.maker.mcp.client;

import io.github.cdimascio.dotenv.Dotenv;
import org.springframework.ai.model.transformers.autoconfigure.TransformersEmbeddingModelAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class McpClientApplication {



    public static void main(String[] args) {
        //加载.env文件
        Dotenv dotenv = Dotenv.configure().ignoreIfMissing().load();
        //把.env中环境变量添加到系统环境变量中
        dotenv.entries().forEach(entry -> System.setProperty(entry.getKey(), entry.getValue()));
        SpringApplication.run(McpClientApplication.class, args);
    }

}
